<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('homologacao/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?idhomologacao='.$form->getObject()->getIdhomologacao() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table style="margin: 10pt auto; width: 100%;">
    <tfoot>
      <tr>
        <td colspan="2">
            <div align="center">
              &nbsp;<a href="<?php echo url_for('homologacao/index') ?>">Listar as inscrições homologadas</a>
              <?php if (!$form->getObject()->isNew()): ?>
                &nbsp;<?php echo link_to('Apagar', 'homologacao/delete?idhomologacao='.$form->getObject()->getIdhomologacao(), array('method' => 'delete', 'confirm' => 'Você confirma esta operação?')) ?>
              <?php endif; ?>  
              <button type="submit" value="Salvar alterações" class="botaoSalvarCinza" >Salvar alterações</button>  
<!--          <input type="submit" value="Save" />-->
            </div>
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form ?>
    </tbody>
  </table>
</form>
